package com.nativetalk.bean.member;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by lizhun on 15/12/24.
 */
public class TdNtMemberLogin {
    @NotNull(message = "{PHONE.REGEXP}")
//    @Pattern(regexp = "^1[3|5|7|8][0-9]\\d{8}$", message = "{PHONE.REGEXP}")
    private String memb_phone;//用户注册手机号码 (11)
    @NotNull(message = "{PASSWORD.REGEXP}")
    @Pattern(regexp = "^[0-9a-zA-Z]{6,20}$", message = "{PASSWORD.REGEXP}")
    private String memb_password;//用户登录密码 (64)  格式：6-20位
    private String equ_type;//1android 2ios
   // @NotNull(message = "{PASSWORD.REGEXPfdas}")
    private String equ_client_id;//设备唯一标示  Android:clientId ios:devicetoken

    private String third_token;//第三方登陆token
    private Integer nowLoginType;//当前用户第三方登录类型 (0:手机 1:微信 2:QQ 3:新浪WeiBo)

    public Integer getNowLoginType() {
        return nowLoginType;
    }

    public void setNowLoginType(Integer nowLoginType) {
        this.nowLoginType = nowLoginType;
    }

    public String getThird_token() {
        return third_token;
    }

    public void setThird_token(String third_token) {
        this.third_token = third_token;
    }

    public void setEqu_type(String equ_type) {
        this.equ_type = equ_type;
    }

    public void setEqu_client_id(String equ_client_id) {
        this.equ_client_id = equ_client_id;
    }

    public String getEqu_type() {
        return equ_type;
    }

    public String getEqu_client_id() {
        return equ_client_id;
    }
    public String getMemb_phone() {
        return memb_phone;
    }

    public void setMemb_phone(String memb_phone) {
        this.memb_phone = memb_phone;
    }

    public String getMemb_password() {
        return memb_password;
    }

    public void setMemb_password(String memb_password) {
        this.memb_password = memb_password;
    }
}
